$(function() {
	$("#left").load("../common/gover-left.html");
	var userId = sessionStorage.getItem("userId");
	my_vue = new Vue({
		el: '#vue_info',
		data: {
			applyList: []
		},
		methods: {
			exitProcess: function(op) {
				if(op == 'index') {
					$.showConfirm({
						'title': '',
						'content': '是否退出办理？',
						"showClose": false,
						"sureLabel": "取消",
						"cancelLabel": "退出办理",
						'cancel': this.toIndex
					});
				} else if(op == 'scanner') {
					$.showConfirm({
						'title': '',
						'content': '是否退出办理？',
						"showClose": false,
						"sureLabel": "取消",
						"cancelLabel": "退出办理",
						'cancel': this.toScanner
					});
				} else if(op == 'zhengwu') {
					$.showConfirm({
						'title': '',
						'content': '是否退出办理？',
						"showClose": false,
						"sureLabel": "取消",
						"cancelLabel": "退出办理",
						'cancel': this.toZhengwu
					});
				}
			},
			doMask: function(op) {
				if(op == '1') {
					window.location = ""
				} else if(op == "2") {

				} else {
					window.location = "feedback.html"
				}
			},
			toIndex: function() {
				window.location = "../clientDown/index.html"
			},
			toScanner: function() {
				window.location = "../clientDown/scannerIndex.html"
			},
			toZhengwu: function() {
				window.location = "../clientDown/selfHelpBusinessChoose.html"
			},
			goBack: function() {
				window.location = "home.html"
			},

			exitAttendTo: function() {
				$.openDialog({
					'title': '',
					"showClose": false,
					'width': 824,
					'height': 460,
					'url': '../clientDown/selfHelpExitChoose.html'
				});
			},
			more: function(applyId) {
				window.location = "detail.html?applyId=" + applyId;
			},
			addExpress: function(applyId) {
				window.location = "addExpress.html?applyId=" + applyId;
			},
			getApplyList: function() {
				this.$http.get("http://192.168.10.45:8888/oc_tengzhou/space/getApplyList.do?t="+new Date().getSeconds(), {
					userId: userId,
				}).then(function(result) {
					if(result.data.success) {
						console.log(toJson(result.data));
						this.applyList = result.data.data;
					}
					console.log(toJson(result.data));

				}, function() {
					console.log('保存接口失败:' + toJson(result));
					top.$.closePopWin();

				})
			}
		},
		ready: function() {
			//初始化获得总页面数和列表数据
			this.getApplyList();
		}
	});

});